import http from '@/utils/Http'
import qs from 'qs'

export function saveFormEdit(params) {
    return http({
        url: 'saveFormEdit',
        method: 'get',
        params: params
    })
}

export function getEditForm(params) {
    return http({
        url: 'getEditForm',
        method: 'get',
        params: params
    })
}

export function getFormWork(params) {
    return http({
        url: 'getFormWork',
        method: 'get',
        params: params
    })
}

export function getForm(params) {
    return http({
        url: 'getForm',
        method: 'get',
        params: params
    })
}

export function getIndex(params) {
    return http({
        url: 'getFormData',
        method: 'get',
        params: params
    })
}

export function submitEdit(data) {
    return http({
        url: 'submitEdit',
        method: 'post',
        data: qs.stringify(data)
    })
}

export function submitContent2(data) {
    return http({
        url: 'submitContent2',
        method: 'post',
        data: qs.stringify(data)
    })
}

export function submitContent(data) {
    return http({
        url: 'submitContent',
        method: 'post',
        data: qs.stringify(data)
    })
}

export function saveForm(data) {
    return http({
        url: 'saveForm',
        method: 'post',
        data: qs.stringify(data)
    })
}

